package com.jilefojing.service;

import java.util.List;

import com.jilefojing.beans.exception.UserContextException;
import com.jilefojing.beans.pojos.WriteBook;
import com.jilefojing.beans.pojos.enhanced.EnhancedWriteBook;
import com.jilefojing.beans.query.WriteBookQuery;
import com.jilefojing.beans.vo.Pagination;
import com.jilefojing.context.beans.vo.UserContext;
import com.jilefojing.service.base.IBaseService;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年10月07日 00时08分14秒
 */
public interface IWriteBookService extends IBaseService<WriteBook> {

	WriteBook saveForActive(WriteBook writeBook, UserContext userContext) throws UserContextException;

	Pagination<EnhancedWriteBook> getPagination(WriteBookQuery writeBookQuery, Pagination<EnhancedWriteBook> pagination, UserContext userContext);

	List<EnhancedWriteBook> appendEnhancedDBuddhism(List<EnhancedWriteBook> enhancedWriteBooks, UserContext userContext);

	List<EnhancedWriteBook> appendEnhancedEBookChapter(List<EnhancedWriteBook> enhancedWriteBooks, UserContext userContext);

}
